package com.neo.subscribe.stamp.service;

import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils;

import java.util.Map;

public abstract class AbstractRequestProcess implements RequestProcess {

    protected Map<String, Object> jsonToMap(String json) {
        if (StringUtils.isBlank(json)) {
            return null;
        }
        return JSONObject.parseObject(json, Map.class);
    }
}
